export type TRenderComponent = (...args: any) => any
// 表单类型
export type TFormType =
  | 'input'
  | 'select'
  | 'custom'
  | 'date-picker'
  | 'select'
  | TRenderComponent
  | 'upload'
  | 'input-number'
// 表单项
export interface IFormSchemas {
  label?: string
  prop: string
  type: TFormType
  // 占用的列
  span?: number
  placeholder?: string
  // 组件参数
  componentProps?: Record<string, any>
  disabled?: boolean
  [key: string]: any
}

// 表格项
export interface ITableColumns {
  label: string
  prop: string
  minWidth?: number
  minComputedWidth?: number
  width?: number
  // 自定义
  render?: (...args: any[]) => any
}
